<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<base href="${base}" />
<meta charset="UTF-8" />
<title>企业会员中心 - 人才系统</title>
<link rel="shortcut icon" href="favicon.ico" />
<link href="styles/user.css" rel="stylesheet" type="text/css" />
</head>
<link rel="stylesheet" href="layui/css/layui.css"  media="all">
<script src="layui/layui.all.js" charset="utf-8"></script>
<script src="js/jquery-2.0.3.js"></script>
<script>
	function download(id) {
		$.ajax({
			type:"Get",
			url:"/files/download/"+id,
			dateType:"JSON",
			success:function(r){
				console.log(r)
				if(r.result){
					layer.msg('下载成功,路径在文件下：'+r.data);
				}else{
					layer.msg('失败');
				}
			}
		})
	}

</script>
<body>
	<jsp:include page="../header.jsp"></jsp:include>
	<!--导航 -->
	<div class="floatnav">
		<jsp:include page="../nav.jsp"></jsp:include>
	</div>
	<!--导航end -->
	<div class="page_location link_bk">

		当前位置：<a href="//">首页</a>&nbsp;>>&nbsp;<a href="company/">会员中心</a>&nbsp;>>&nbsp;招聘管理&nbsp;>>&nbsp;已下载简历
	</div>
	<table width="985" border="0" align="center" cellpadding="0"
		cellspacing="0" style="margin-top: 8px;">
		<tr>
			<td width="173" valign="top" class="link_bk"><jsp:include
					page="left.jsp"></jsp:include></td>
			<td valign="top">
				<div class="user_right_box">
					<div class="user_right_top_tit_bg">
						<h1>已下载简历</h1>
					</div>
					<div class="us_tab">
						<a href="" class="select">所有的</a> <a href="">最近3天</a> <a href="">最近7天</a>
						<a href="">最近1月</a> <a href="">最近3月</a>
					</div>
					<form id="form1" name="form1" method="post" action="">
						<table width="97%" border="0" align="center" cellpadding="0"
							cellspacing="0" class="link_lan">
							<tr>
								<td width="200" style="position:relative;left: 110px" height="26"
									class="us_list_title">简历名称
									</td>

								<td width="150" class="us_list_title">申请的职位</td>

								<td width="150" class="us_list_title">申请日期</td>
								<td width="100" class="us_list_title">操作</td>
							</tr>
							<c:forEach items="${myresume.data}" var="resw" varStatus="s">
							<tr>
								<td height="32" style="position:relative;left: 130px">${resw.resume.realName}</a></td>

								<td>${resw.work.name}</td>


								<td>${resw.sendTime}</td>
								<td><input type="button" value="下载" onclick="download(${resw.resume.id})"></td>

							</tr>
							<tr>
								<td height="21" colspan="4" valign="top" class="us_list">
									<div style="color: #999999; padding-left: 22px;">
										性别：<c:if test="${resw.resume.gender == 'm'}">男</c:if>
										<c:if test="${resw.resume.gender == 'f'}">女</c:if>&nbsp;&nbsp;|&nbsp;&nbsp
										工作经验：${resw.resume.workExp}&nbsp;&nbsp;|&nbsp;&nbsp
										学历：${resw.resume.education}&nbsp;&nbsp;|&nbsp;&nbsp
										所在地区：${resw.resume.address}&nbsp;&nbsp;|&nbsp;&nbsp 简历更新日期：<fmt:formatDate
											type="DATE" value="${resw.resume.updateTime}" /></div>
								</td>
							</tr>
							</c:forEach>
						</table>
						<table width="100%" border="0" cellspacing="8" cellpadding="0">
							<tr>
								<td><input type="submit" name="shift" value="转至人才库"
									class="user_submit" /></td>
							</tr>
						</table>
						<table border="0" align="center" cellpadding="0" cellspacing="0"
							class="link_bk">
							<tr>
								<td height="50" align="center">
									<div class="page link_bk">
										<a class="">首页</a><a class="">上一页</a><a class="select">1</a> <a
											class="">下一页</a><a class="">尾页</a><a>1/1页</a>
										<div class="clear"></div>
									</div>
								</td>
							</tr>
						</table>
					</form>
				</div>
			</td>
		</tr>
	</table>
	<jsp:include page="../footer.jsp"></jsp:include>
</body>
</html>
